<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>

        <div class='form'>
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                        'id' => 'group-form',
                        'enableClientValidation' => true,
                        'clientOptions' => array(
                            'validateOnSubmit' => true,
                        ),
                    ));
            ?>

            <div><?php echo $form->labelEx($model, 'uname', array('label' => '群名称')); ?></div>
            <div><?php echo $form->textField($model, 'gname'); ?></div>

            <div><?php echo $form->labelEx($model, 'type', array('label' => '群类型')); ?></div>
            <div><?php echo $form->textField($model, 'type'); ?></div>

            <div><?php echo $form->labelEx($model, 'description', array('label' => '描述')); ?></div>
            <div><?php echo $form->textField($model, 'description'); ?></div>

            <div>
                <?php echo CHtml::submitButton('submit'); ?>
            </div>
            <?php $this->endWidget(); ?>
        </div>

            <?php if (!empty($ret)): ?>
            <?php print_r($ret); ?>
            <?php foreach ($ret as $key => $value): ?>
                <div class="row">
                    <?php echo $key . ":" . $value; ?>
                </div>
            <?php endforeach; ?>
            <?php endif; ?>
        
    </body>
</html>
